package com.aspose.cells;

class zbda extends zck {
   zbda(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
   }

   void b() {
      com.aspose.cells.b.a.b.a.zf var1 = this.a.e();
      this.a.a(4);
      com.aspose.cells.b.a.b.zq var2 = new com.aspose.cells.b.a.b.zq(this.g, this.h, this.e.v().h(), this.e.v().i());
      com.aspose.cells.b.a.b.zm var3 = zbum.a(this.e.x());
      float var4 = 0.0F;
      float var5 = 0.0F;
      float var6 = 0.0F;
      float var7 = 0.0F;
      float var8 = 0.0F;
      float var9 = 0.0F;
      com.aspose.cells.b.a.b.a.ze var10;
      if (!this.e.w().a()) {
         var10 = new com.aspose.cells.b.a.b.a.ze();
         if (this.e.m != null) {
            if (this.e.m.a.size() > 0) {
               var4 = com.aspose.cells.b.a.ze.a(this.e.m.a.get(0));
               var5 = com.aspose.cells.b.a.ze.a(this.e.m.a.get(1));
            } else {
               var4 = 0.0F;
            }
         } else {
            var4 = 0.0F;
         }

         if (var4 <= 0.0F) {
            var10.a(var2, 270.0F, 90.0F);
            var10.b(this.g + var2.h(), this.h + var2.i() / 2.0F, this.g + var2.h() / 2.0F, this.h + var2.i() / 2.0F);
            var10.b(this.g + var2.h() / 2.0F, this.h + var2.i() / 2.0F, this.g + var2.h() / 2.0F, this.h);
         } else {
            if (var4 >= 0.0F && var4 <= 5400000.0F) {
               var8 = var4 / 5400000.0F * 90.0F;
            } else if (var4 >= 5400000.0F && var4 <= 1.08E7F) {
               var8 = var4 / 1.08E7F * 180.0F;
            } else if (var4 >= 1.08E7F && var4 <= 1.62E7F) {
               var8 = var4 / 1.62E7F * 270.0F;
            } else if (var4 >= 1.62E7F && var4 <= 2.16E7F) {
               var8 = var4 / 2.16E7F * 360.0F;
            }

            if (var5 >= 0.0F && var5 <= 5400000.0F) {
               var9 = var5 / 5400000.0F * 90.0F;
            } else if (var5 >= 5400000.0F && var5 <= 1.08E7F) {
               var9 = var5 / 1.08E7F * 180.0F;
            } else if (var5 >= 1.08E7F && var5 <= 1.62E7F) {
               var9 = var5 / 1.62E7F * 270.0F;
            } else if (var5 >= 1.62E7F && var5 <= 2.16E7F) {
               var9 = var5 / 2.16E7F * 360.0F;
            }

            if (var4 >= 0.0F && var4 <= 5400000.0F && var5 >= 0.0F && var5 <= 5400000.0F) {
               var7 = var9 - var8;
            } else if (var4 >= 5400000.0F && var4 <= 1.08E7F && var5 >= 5400000.0F && var5 <= 1.08E7F) {
               var7 = var9 - var8;
            } else if (var4 >= 1.08E7F && var4 <= 1.62E7F && var5 >= 1.08E7F && var5 <= 1.62E7F) {
               var7 = var9 - var8;
            } else if (var4 >= 1.62E7F && var4 <= 2.16E7F && var5 >= 1.62E7F && var5 <= 2.16E7F) {
               var7 = var9 - var8;
            } else if (var9 - var8 < 0.0F) {
               var7 = 360.0F - Math.abs(var9 - var8);
            } else {
               var7 = var9 - var8;
            }

            com.aspose.cells.b.a.b.zp var11 = new com.aspose.cells.b.a.b.zp((int)var2.f(), (int)var2.g(), (int)var2.h(), (int)var2.i());
            var10.a(var11, var8, var7);
         }

         com.aspose.cells.b.a.b.zc var12 = zbum.a(this.e.w(), var10);
         this.a.a(var12, var10);
      }

      if (!this.e.x().a()) {
         var10 = new com.aspose.cells.b.a.b.a.ze();
         if (this.e.m != null) {
            var4 = com.aspose.cells.b.a.ze.a(this.e.m.a.get(0));
            var5 = com.aspose.cells.b.a.ze.a(this.e.m.a.get(1));
         } else {
            var4 = 0.0F;
         }

         if (var4 <= 0.0F) {
            var10.a(var2, 270.0F, 90.0F);
         } else {
            if (var4 >= 0.0F && var4 <= 5400000.0F) {
               var8 = var4 / 5400000.0F * 90.0F;
            } else if (var4 >= 5400000.0F && var4 <= 1.08E7F) {
               var8 = var4 / 1.08E7F * 180.0F;
            } else if (var4 >= 1.08E7F && var4 <= 1.62E7F) {
               var8 = var4 / 1.62E7F * 270.0F;
            } else if (var4 >= 1.62E7F && var4 <= 2.16E7F) {
               var8 = var4 / 2.16E7F * 360.0F;
            }

            if (var5 >= 0.0F && var5 <= 5400000.0F) {
               var9 = var5 / 5400000.0F * 90.0F;
            } else if (var5 >= 5400000.0F && var5 <= 1.08E7F) {
               var9 = var5 / 1.08E7F * 180.0F;
            } else if (var5 >= 1.08E7F && var5 <= 1.62E7F) {
               var9 = var5 / 1.62E7F * 270.0F;
            } else if (var5 >= 1.62E7F && var5 <= 2.16E7F) {
               var9 = var5 / 2.16E7F * 360.0F;
            }

            if (var4 >= 0.0F && var4 <= 5400000.0F && var5 >= 0.0F && var5 <= 5400000.0F) {
               var7 = var9 - var8;
            } else if (var4 >= 5400000.0F && var4 <= 1.08E7F && var5 >= 5400000.0F && var5 <= 1.08E7F) {
               var7 = var9 - var8;
            } else if (var4 >= 1.08E7F && var4 <= 1.62E7F && var5 >= 1.08E7F && var5 <= 1.62E7F) {
               var7 = var9 - var8;
            } else if (var4 >= 1.62E7F && var4 <= 2.16E7F && var5 >= 1.62E7F && var5 <= 2.16E7F) {
               var7 = var9 - var8;
            } else if (var9 - var8 < 0.0F) {
               var7 = 360.0F - Math.abs(var9 - var8);
            } else {
               var7 = var9 - var8;
            }

            var10.a(var2, var8, var7);
         }

         this.a.a(var3, var10);
      }

      super.a();
      this.a.a(var1);
   }
}
